<?php
$form = $this->beginWidget('bootstrap.widgets.TbActiveForm', array(
    'id' => 'aman-student-college-details-form',
    'enableAjaxValidation' => false,
        ));
?>

<p class="help-block">Fields with <span class="required">*</span> are required.</p>

<?php echo $form->errorSummary($model); ?>

<?php echo $form->textFieldRow($model, 'college_name', array('class' => 'span3', 'maxlength' => 45)); ?>

<?php echo $form->textFieldRow($model, 'deemed_university', array('class' => 'span3')); ?>

<?php echo $form->textFieldRow($model, 'principal_first_name', array('class' => 'span3', 'maxlength' => 45)); ?>

<?php echo $form->textFieldRow($model, 'principal_last_name', array('class' => 'span3', 'maxlength' => 45)); ?>


<?php
echo $form->dropDownListRow($model, 'gender', array(1 => 'Male', 2 => 'Female'), array('class' => 'span3'));
?>
<?php echo $form->textFieldRow($model, 'phone_no1', array('class' => 'span3')); ?>

<?php echo $form->textFieldRow($model, 'phone_no2', array('class' => 'span3')); ?>

<?php echo $form->textAreaRow($model, 'police_station_name_and_address', array('rows' => 6, 'cols' => 50, 'class' => 'span3')); ?>

<?php //echo $form->textFieldRow($model, 'student_details_id', array('class' => 'span3', 'maxlength' => 20)); ?>
<?php echo $form->dropDownListRow($model, 'state_id', GxHtml::listDataEx(AmanState::model()->findAllAttributes(null, true)), array('class' => 'span3')); ?>
<?php echo $form->dropDownListRow($model, 'college_type_id', GxHtml::listDataEx(AmanCollegeType::model()->findAllAttributes(null, true)), array('class' => 'span3')); ?>
<?php echo $form->dropDownListRow($model, 'affiliating_university_id', GxHtml::listDataEx(AmanAffiliatingUniversity::model()->findAllAttributes(null, true)), array('class' => 'span3')); ?>




<div class="form-actions1">
    <?php
    $this->widget('bootstrap.widgets.TbButton', array(
        'buttonType' => 'submit',
        'type' => 'primary',
        'label' => $model->isNewRecord ? 'Create' : 'Save',
    ));
    ?>
</div>

<?php $this->endWidget(); ?>
